<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>研学旅行后台管理系统</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" th:href="@{/css/font.css}">
	<link rel="stylesheet" th:href="@{/css/xadmin.css}">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
    <script type="text/javascript" th:src="@{/js/xadmin.js}"></script>
    <script th:src="@{/lib/layui/lay/modules/layer.js}" charset="utf-8"></script>

</head>
<body>
    <!-- 中部开始 -->
    <div class="wrapper">
        <!-- 右侧主体开始 -->
        <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <form class="layui-form" th:action="@{/user/platetoAdd}" method="post">
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">
                        <span class="x-red">*</span>板块名称
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_email" name="name" required="" lay-verify=""
                        autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">
                        <span class="x-red">*</span>板块路径
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="url" required="" lay-verify=""
                        autocomplete="off" class="layui-input">
                    </div>
                </div>
                
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">
                        <span class="x-red">*</span>板块英文名
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="ename" required="" lay-verify=""
                        autocomplete="off" class="layui-input">
                    </div>
                </div>
                    
                   <div class="layui-form-item">
                    <label for="" class="layui-form-label">
                        <span class="x-red">*</span>选择上级
                    </label>
                    <div class="layui-inline">
            <select style="position: absolute;top: 150px;" name="parentid">
            	<option th:each="item,index : ${list}" th:value="${item.pid}" th:text="${item.name}"></option>
            </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="" class="layui-form-label">
                    </label>
                    <button  class="layui-btn s" lay-filter="add" lay-submit="" onclick="submit_()">
                        增加
                    </button>
                </div>
            </form>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>
    <!-- 中部结束 -->
    <script type="text/javascript">
    	function submit_(){
    		var index = parent.layer.getFrameIndex(window.name);
    		parent.layer.close(index);
    	}
    </script>
</body>
</html>